package com.ww.springboot.boot.baseTest.design.adapter.adapter;

import com.ww.springboot.boot.baseTest.design.adapter.Adapter;
import com.ww.springboot.boot.baseTest.design.adapter.Player;
import com.ww.springboot.boot.baseTest.design.adapter.impl.Mp3Player;

/**
 * 描述：mp4以下的功能兼容
 *
 * @author 🧑 ‍wanwei
 * @since 2022-03-04 11:55
 */
public class Mp4DownAdapter implements Adapter {

    @Override
    public void adapter(String type) {
        if(type.equalsIgnoreCase("mp3")){
            new Mp3Player().play(type);
        }else {
            System.out.println("---------不支持---------");
        }
    }
}
